package com.car.account.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.car.account.dto.storesInfoDto.AdminSelectStoresInfoByIdDto;
import com.car.account.dto.storesInfoDto.AdminSelectStoresInfoDto;
import com.car.account.entity.StoresInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.car.account.param.storesInfoParam.AdminSelectStoresInfoParam;
import org.springframework.web.multipart.MultipartFile;


import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
public interface StoresInfoService extends IService<StoresInfo> {

    AdminSelectStoresInfoByIdDto adminSelectStoresInfoDtoById(Integer adminId, Integer storesId)throws Exception;

    Page<AdminSelectStoresInfoDto> adminSelectStoresInfoDto(AdminSelectStoresInfoParam param)throws Exception;

    StoresInfo clerkSelectStoresInfo(Integer clerkId)throws Exception;

    String updateStoresInfoImage(Integer clerkId, MultipartFile mf)throws Exception;

    void updateStoresInfoDetail(Integer clerkId, String storesDetail)throws Exception;

    List<Integer> getAllStoresId(Integer adminId)throws Exception;

    void adminDisableStores(Integer adminId, Integer storesId)throws Exception;

    void adminEnableStores(Integer adminId, Integer storesId)throws Exception;

    void changeStoresInfoScore(Integer score, Integer storesId)throws Exception;
}
